package org.blogwu.learn.multithread.chapter2.demo9;

public class Main5 {

    public synchronized void getCOde() {
        System.out.println("Hello World");
    }

    public void getSB() {
        synchronized (this) {
            System.out.println("Hello World");
        }

    }
}
